﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;

namespace SQL
{
    class Go
    {

        public static void Main()
        {

            SqlCommand cmd = new SqlCommand();

            cmd.Connection = SqlInutil.GetConnection();
            //cmd.CommandText = "select cod, descricao fom detalhes where zona = 42";
            cmd.CommandText = "select * from teste";
            SqlDataReader reader = cmd.ExecuteReader();

            while (reader.Read())
            {

                Console.WriteLine("{0} - {1}", reader[0], reader[1]);

            }

            Console.ReadKey();
        }

    }


}

